package com.wavehi.config_bind;

import com.wavehi.config_bind.pojo.Car;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ConfigBindApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ConfigBindApplication.class, args);

        for (String beanDefinitionName : run.getBeanDefinitionNames()) {
            System.out.println(beanDefinitionName);
        }
        System.out.println(run.getBean("mycar-com.wavehi.config_bind.pojo.Car", Car.class));
    }

}
